package com.example.yafeizhang.dememaven;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.example.librtc.Operate;


public class MainActivity extends AppCompatActivity {

    private TextView txview;
    private Button loadBtn;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        loadBtn = (Button) findViewById(R.id.btnload);
        txview = (TextView)findViewById(R.id.textView);

        loadBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {


                Operate op = new Operate();
                String time ="super boy";

                txview.setText(op.onGetSum("jiong is ", time));


                //显示新的activex


            }
        });

    }
}
